Re: [GENERAL] datetime problems - Mailing list pgsql-general

From Herouth Maoz
Subject Re: [GENERAL] datetime problems
Date
Msg-id l03110704b2538d2ce9e2@[147.233.159.109]
Whole thread Raw
In response to datetime problems  (Memphisto <szoli@valerie.inf.elte.hu>)
List pgsql-general
At 13:50 +0200 on 21/10/98, Memphisto wrote:


> I'd like to issue a query that lists all the rows of a table whose 'date'
> columns(its type is datetime) is falls in a month, i.e. these rows were
> inserted in , say August. How can I do that?

SELECT *
FROM the_table
WHERE the_date BETWEEN '1998-08-01' AND '1998-08-31';



Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-general by date:

Previous
From: Memphisto
Date:
Subject: That bug I mention in my prev. letter
Next
From: Herouth Maoz
Date:
Subject: Re: [GENERAL] datetime problems